function recommendInfo() {
	$.ajax({
		url :Server + "/ix/recommend",
		type : "POST",
		success : function(data) {
			var info = data;

			var html = '<ul class="item line">\
					<li class="first">\
							<a href="instrumentList11">\
							<p class="title">元素定量分析</p>\
							<p>查看所有&gt;</p>\
						</a>\
					</li>\
					<li class="second">\
						<div class="box" onclick="findInfo(' + info[0].id + ')">\
							<div  onclick="findInfo(' + info[0].id + ')" ><img src=' + info[0].infoSrc + ' alt=""></div>\
							<a onclick="findInfo(' + info[0].id + ')">\
								<h1 title="' + info[0].chineseName + '">' + info[0].chineseName + '</h1>\
								<p title="' + info[0].serial + '">型号：' + info[0].serial + '</p>\
								<p class="main_color">￥<b>' + info[0].total + info[0].unit +'</b><span class="unit">/元素</span></p>\
							</a>\
						</div>\
						<div class="box two" onclick="findInfo(' + info[1].id + ')">\
							<div><img src=' + info[1].infoSrc + ' alt=""></div>\
							<a onclick="findInfo(' + info[1].id + ')">\
								<h1 title="' + info[1].chineseName + '">' + info[1].chineseName + '</h1>\
								<p title="' + info[1].serial + '">型号：' + info[1].serial + '</p>\
								<p class="main_color">' + info[1].total + info[1].unit +'</p>\
							</a>\
						</div>\
					</li>\
					<li class="item" onclick="findInfo(' + info[2].id + ')">\
						<div><img src=' + info[2].infoSrc + ' alt=""></div>\
						<a onclick="findInfo(' + info[2].id + ')">\
							<h1 title="' + info[2].chineseName + '">' + info[2].chineseName + '</h1>\
							<p title="' + info[2].serial + '">型号：' + info[2].serial + '</p>\
							<p class="main_color">￥<b>' + info[2].total + info[2].unit +'</b><span class="unit"> /样品</span></p>\
						</a>\
					</li>\
					<li class="item" onclick="findInfo(' + info[3].id + ')">\
						<div><img src=' + info[3].infoSrc + ' alt=""></div>\
						<a onclick="findInfo(' + info[3].id + ')">\
							<h1 title="' + info[3].chineseName + '">' + info[3].chineseName + '</h1>\
							<p title="' + info[3].serial + '">型号：' + info[3].serial + '</p>\
							<p class="main_color">￥<b>' + info[3].total + info[3].unit +'</b><span class="unit">/样品</span></p>\
						</a>\
					</li>\
				</ul>\
				<ul class="item line">\
				<li class="first1" >\
					<a href="instrumentList11">\
						<p class="title">环境监测仪器</p>\
						<p>查看更多&gt;</p>\
					</a>\
				</li>\
				<li class="second">\
					<div class="box" onclick="findInfo(' + info[4].id + ')">\
						<div><img src=' + info[4].infoSrc + ' alt=""></div>\
						<a onclick="findInfo(' + info[4].id + ')">\
							<h1 title="' + info[4].chineseName + '">' + info[4].chineseName + '</h1>\
							<p title="' + info[4].serial + '">型号：' + info[4].serial + '</p>\
							<p class="main_color">￥<b>' + info[4].total + info[4].unit +'</b><span class="unit">/元素</span></p>\
						</a>\
					</div>\
					<div class="box two" onclick="findInfo(' + info[5].id + ')">\
						<div><img src=' + info[5].infoSrc + ' alt=""></div>\
						<a onclick="findInfo(' + info[5].id + ')">\
							<h1 title="' + info[5].chineseName + '">' + info[5].chineseName + '</h1>\
							<p title="' + info[5].serial + '">型号：' + info[5].serial + '</p>\
							<p class="main_color">' + info[5].total + info[5].unit +'</p>\
						</a>\
					</div>\
				</li>\
				<li class="item" onclick="findInfo(' + info[6].id + ')">\
					<div><img src=' + info[6].infoSrc + ' alt=""></div>\
					<a onclick="findInfo(' + info[6].id + ')">\
						<h1 title="' + info[6].chineseName + '">' + info[6].chineseName + '</h1>\
						<p title="' + info[6].serial + '">型号：' + info[6].serial + '</p>\
						<p class="main_color">￥<b>' + info[6].total + info[6].unit +'</b><span class="unit"> /样品</span></p>\
					</a>\
				</li>\
				<li class="item" onclick="findInfo(' + info[7].id + ')">\
					<div><img src=' + info[7].infoSrc + ' alt=""></div>\
					<a onclick="findInfo(' + info[7].id + ')">\
						<h1 title="' + info[7].chineseName + '">' + info[7].chineseName + '</h1>\
						<p title="' + info[7].serial + '">型号：' + info[7].serial + '</p>\
						<p class="main_color">￥<b>' + info[7].total + info[7].unit +'</b><span class="unit">/样品</span></p>\
					</a>\
				</li>\
			</ul>\
			<ul class="item line">\
				<li class="first2" >\
					<a href="instrumentList11">\
						<p class="title">环境监测仪器</p>\
						<p>查看更多&gt;</p>\
					</a>\
				</li>\
				<li class="second">\
					<div class="box" onclick="findInfo(' + info[4].id + ')">\
						<div><img src=' + info[4].infoSrc + ' alt=""></div>\
						<a onclick="findInfo(' + info[4].id + ')">\
							<h1 title="' + info[4].chineseName + '">' + info[4].chineseName + '</h1>\
							<p title="' + info[4].serial + '">型号：' + info[4].serial + '</p>\
							<p class="main_color">￥<b>' + info[4].total + info[4].unit +'</b><span class="unit">/元素</span></p>\
						</a>\
					</div>\
					<div class="box two" onclick="findInfo(' + info[5].id + ')">\
						<div><img src=' + info[5].infoSrc + ' alt=""></div>\
						<a onclick="findInfo(' + info[5].id + ')">\
							<h1 title="' + info[5].chineseName + '">' + info[5].chineseName + '</h1>\
							<p title="' + info[5].serial + '">型号：' + info[5].serial + '</p>\
							<p class="main_color">' + info[5].total + info[5].unit +'</p>\
						</a>\
					</div>\
				</li>\
				<li class="item" onclick="findInfo(' + info[6].id + ')">\
					<div><img src=' + info[6].infoSrc + ' alt=""></div>\
					<a onclick="findInfo(' + info[6].id + ')">\
						<h1 title="' + info[6].chineseName + '">' + info[6].chineseName + '</h1>\
						<p title="' + info[6].serial + '">型号：' + info[6].serial + '</p>\
						<p class="main_color">￥<b>' + info[6].total + info[6].unit +'</b><span class="unit"> /样品</span></p>\
					</a>\
				</li>\
				<li class="item" onclick="findInfo(' + info[7].id + ')">\
					<div><img src=' + info[7].infoSrc + ' alt=""></div>\
					<a onclick="findInfo(' + info[7].id + ')">\
						<h1 title="' + info[7].chineseName + '">' + info[7].chineseName + '</h1>\
						<p title="' + info[7].serial + '">型号：' + info[7].serial + '</p>\
						<p class="main_color">￥<b>' + info[7].total + info[7].unit +'</b><span class="unit">/样品</span></p>\
					</a>\
				</li>\
			</ul>';
			$("#machines").html(html);
		},
		error : function(msg) {}
	});
}

function findInfo(id) {
	$(location).attr('href', 'productDetail5?id=' + id + '');
}


$(function() {
	$("#search-btn").click(function() {
		$(this).submit();
	});
});